package app.modules.infrastructure.lov.dto.web;

import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author mh.z
 */
@Schema(title = "值项的更新信息")
public class WebValueItemUpdateDTO {

    @Schema(title = "记录ID")
    private Long id;

    @Schema(title = "值集ID")
    private Long valueSetId;

    @NotEmpty
    @Length(max = 50)
    @Schema(title = "代码")
    private String valueCode;

    @NotEmpty
    @Length(max = 100)
    @Schema(title = "名称")
    private String valueName;

    @Length(max = 200)
    @Schema(title = "描述")
    private String valueDesc;

    @Schema(title = "显示顺序")
    private Integer showOrder;

    @Schema(title = "启用标志")
    private Boolean enableFlag;

    @Schema(title = "版本号")
    private Integer versionNumber;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getValueSetId() {
        return valueSetId;
    }

    public void setValueSetId(Long valueSetId) {
        this.valueSetId = valueSetId;
    }

    public String getValueCode() {
        return valueCode;
    }

    public void setValueCode(String valueCode) {
        this.valueCode = valueCode;
    }

    public String getValueName() {
        return valueName;
    }

    public void setValueName(String valueName) {
        this.valueName = valueName;
    }

    public String getValueDesc() {
        return valueDesc;
    }

    public void setValueDesc(String valueDesc) {
        this.valueDesc = valueDesc;
    }

    public Integer getShowOrder() {
        return showOrder;
    }

    public void setShowOrder(Integer showOrder) {
        this.showOrder = showOrder;
    }

    public Boolean getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(Boolean enableFlag) {
        this.enableFlag = enableFlag;
    }

    public Integer getVersionNumber() {
        return versionNumber;
    }

    public void setVersionNumber(Integer versionNumber) {
        this.versionNumber = versionNumber;
    }
}
